<?php
session_start();
include("lib/lib.php");
include("connado.php");
include("lib/class.FastTemplate.php");

$template_path = 'tpl';
$tpl = new FastTemplate( $template_path );

$tpl->define(
         array (
                  main     => "tpl-index.html",
                  content  => "tpl-mexchname.html"
         )
);

// ---- assign value -----------------------------------------------
$tpl->assign(
         array(  
         		USER_LOGIN	=> $_SESSION['usrid_login'],        		                         		
         		VIEW_EXCHNAME	=> viewExchName($db)
         )
);
// ------------------------------------------------------------------

$tpl->parse(CONTENT, content);
$tpl->parse(MAIN, main);
$tpl->FastPrint();

?>
